package com.link.base.base.home.controller;

import com.link.base.base.home.model.HomePage;
import com.link.base.base.home.service.HomePageService;
import com.link.core.basic.controller.BasicController;
import com.link.core.basic.service.BasicService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * @author: weixuan
 * created: 2019-01-12
 * comments: 首页菜单栏Controller
 */
@Controller
@RequestMapping("/link/homePage")
public class HomePageController extends BasicController<HomePage> {

    @Resource
    private HomePageService homePageService;

    /**
     *
     * @author weixuan
     * @created 2019-01-12
     * @throws Exception
     * 查询用户自定义首页菜单栏，如果不存在默认系统新增初始化
     */
    @Override
    public BasicService<HomePage> getBasicService() throws Exception {
        return homePageService;
    }

}
